import request from '@/utils/request'

// 查询certificate列表
export function listCertificate(query) {
  return request({
    url: '/teacher/certificate/list',
    method: 'get',
    params: query
  })
}

// 查询certificate详细
export function getCertificate(certificateId) {
  return request({
    url: '/teacher/certificate/' + certificateId,
    method: 'get'
  })
}

// 新增certificate
export function addCertificate(data) {
  return request({
    url: '/teacher/certificate/add',
    method: 'post',
    data: data
  })
}

// 修改certificate
export function updateCertificate(data) {
  return request({
    url: '/teacher/certificate/update',
    method: 'post',
    data: data
  })
}

// 删除certificate
export function delCertificate(certificateId) {
  return request({
    url: '/teacher/certificate/' + certificateId,
    method: 'post'
  })
}
